﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Plane : Vehicle, IFlyable
    {
        public void Fly()
        {
            Console.WriteLine("我可以飞行");
        }
        public void CarryPassengers()
        {
            Console.WriteLine("我可以载客飞行 ");
        }
        public void Land()
        {
            Console.WriteLine("我要降落了");
        }

        public void TakeOff()
        {
            Console.WriteLine("我要起飞了");
        }
        
        public Plane(string name) : base(name)
        { 
        }
    }
}
